package com.hsjk.szwj.module.train.excel;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.read.listener.ReadListener;
import com.hsjk.szwj.module.train.controller.admin.vo.AdminQuestionInitVO;

import java.util.ArrayList;
import java.util.List;

/**
 * @author chenjiawei
 * @desc
 * @Date 2023/08/18 16:45
 **/
public class AdminQuestionInitReadListener implements ReadListener<AdminQuestionInitVO> {
    private List<AdminQuestionInitVO> questions = new ArrayList<>();

    public List<AdminQuestionInitVO> getQuestions() {
        return questions;
    }

    @Override
    public void invoke(AdminQuestionInitVO adminQuestionInitVO, AnalysisContext analysisContext) {
        questions.add(adminQuestionInitVO);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {

    }
}
